<template>
	<div  class="mainInfor">
		<h3><span><Icon type="person" size=24></Icon></span>个人信息</h3>
		 <Form :model="formItem" :label-width="80">
		 	<div class="left">
        <FormItem label="用户姓名"  prop="name">
            <Input v-model="formItem.name" placeholder="amy"></Input>
        </FormItem>
           <FormItem label="用户手机">
              <Input v-model="formItem.phone" placeholder="177777777"></Input>
           </FormItem>
         <FormItem label="出生年月">
        <DatePicker type="date"   placeholder="Select date" v-model="formItem.birth" class="date">
          </DatePicker>
        </FormItem>
        <FormItem label="公司姓名">
            <Input v-model="formItem.company" placeholder="amy"></Input>
        </FormItem>
        <FormItem label="部门">
            <Input v-model="formItem.proj" placeholder="项目管理部"></Input>
        </FormItem>
        <FormItem label="入职时间">
        <DatePicker type="date"   placeholder="Select date" v-model="formItem.date" class="date">
          </DatePicker>
        </FormItem>
  
        <FormItem>
          <Button type="ghost" @click="handleReset('formDynamic')" >取消</Button>
          <Button type="primary" @click="handleSubmit('formDynamic')" style="margin-left: 8px">保存</Button>
        </FormItem>
        </div>
        <div class="right"> <img src="/static/images/headImg.jpg"><div>更换头像</div></div>
    </Form>
		
	</div>
</template>

<script>
   export default {
        data () {
            return {
                formItem: {
                    input: '',
                    select: '',
                    radio: 'male',
                    checkbox: [],
                    switch: true,
                    date: '',
                    time: '',
                    slider: [20, 50],
                    textarea: ''
                }
            }
        }
    }

</script>


<style type="text/css">
	.mainInfor{
		width: 70%;
		margin: 0 auto;
		border: solid 1px #e5e5e5;
		box-sizing: border-box;
		 margin-top: 20px;
		 border-radius: 5px;
     overflow: hidden;
	}

		 .mainInfor span{padding-right: 5px;}
.mainInfor h3{
	padding-left: 10px; 
	height: 50px; 
	line-height: 30px; 
	font-size:18px; 
	font-weight: normal; 
	border-bottom: solid 1px #e5e5e5; 		
	padding: 10px;
  margin-bottom: 30px;
}
.mainInfor .left{width: 60%; float: left; padding-right: 20%;}
.mainInfor .right{width: 40%; float: left; text-align: center;}
.mainInfor .right img{ border-radius: 50%; width: 40%;}
.mainInfor .right>div{line-height: 40px;}
.mainInfor:hover{
	  box-shadow:0 0 2px 3px rgba(0,0,0,.1);
}
.mainInfor .date{
  width: 100%;
}
</style>